package repository

import (
	"linker/util/mysql"
)

type TestRepository interface {
	Test() map[string]interface{}
}

type testRepository struct {
	db mysql.MysqlDB
}


func NewTestRepository(db mysql.MysqlDB ) TestRepository {
	return &testRepository{db: db}
}

func (r *testRepository) Test() map[string]interface{}{
	return r.db.Paginate("select *","from test2",int64(1),int64(1))
}
